package com.lcf.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 地区表(SysAddress)表实体类
 *
 * @author lcf
 * @since 2025-04-24 21:14:32
 */
@Data
@NoArgsConstructor
public class SysAddressDTO  {
    //父id
    @NotNull(message = "父id不能为空")
    @Schema(description = "父id")
    private Long pid;
    //名称
    @NotBlank(message = "名称不能为空")
    @Schema(description = "名称")
    private String name;
    //类型1省2市3区
    @NotNull(message = "类型不能为空")
    @Schema(description = "类型1省2市3区")
    private Integer type;
}

